DatePart(datepart, date)


Returns the specified part of a date as an integer.

See also DateAdd and DateConvert.

datepart

One of the following strings:

date

Any date.